import styles from '../index.module.less'

import 'react-photo-view/dist/react-photo-view.css'

interface PropsType {
    type: 'province' | 'center'
    result?: boolean
    time?: string
    opinion?: string
}

export default (props: PropsType) => {
    const { type, result, time, opinion } = props
    return (
        <div className={styles.auditInfo}>
            <section>
                <div>
                    <label className={styles.depsLabel}>
                        {type === 'province' ? '省级审核' : '部中心审核'}
                    </label>
                </div>
                <div>
                    <label>审核结果</label>
                    <span className={result ? styles.succText : styles.errorText}>
                        {' '}
                        {result ? '通过' : '未通过'}
                    </span>
                </div>
                <div>
                    <label>审核时间</label>
                    <span> {time}</span>
                </div>
                <div>
                    <label>审核意见</label>
                    <span> {opinion}</span>
                </div>
            </section>
        </div>
    )
}
